A solar-energy bill that sparked an hourlong debate on Monday was passed by on Tuesday, essentially killing it for the year.