A US-UK trade deal will not get through Congress if Brexit undermines the Good Friday Agreement, the Speaker of the US House of Representatives has said.