The resolution to end US support for the Saudi-led conflict defies President Trump's threat to veto.