The Senate’s tax-and-spending bill gives a boost to nuclear power stocks, but knocks down shares of solar companies.