The Senate voted to upend a rule allowing retirement plan managers to consider environmental and social factors in their investments, in defiance of a White House veto threat.