US president says he will sign an order halting all immigration to protect jobs as coronavirus spreads.