The lawsuit, which includes 12 other attorneys general, claims the federal government targeted programs designed to lower utility bills in Democratic-led states.