Groups not directly tied to candidates have spent at least $50 million so far this year to influence key state and federal races.