A San Francisco-based appeals court has denied an emergency motion filed by the justice department to reinstate President Donald Trump's halted immigration ban.