Resolution that would block tariffs passes 51-48 in Senate, in vote that shows Republican unease over president’s plans