US President Donald Trump is facing an escalating legal battle over the implementation of his ban on travellers from seven Muslim-majority countries and refugees.