The Senate voted nearly unanimously to pass major legislation designed to reverse the American nuclear industry’s decades-long decline and launch a reactor-building spree to meet surging demand for green electricity at home and to catch up with booming rivals overseas.