The union and a group of homeowners, solar energy companies and nonprofits claim the agency illegally clawed-back funding