The US Supreme Court has ordered President Joe Biden to reinstate a policy of making asylum seekers stay in Mexico while claims are processed.