The legislation is unlikely to pass the GOP-controlled House. But the vote demonstrated some pushback in Republican ranks against Trump’s tariffs.