Though it still needs Senate approval, the bill’s passage is a significant show of defiance against President Trump and GOP leadership.