The White House counsel’s office has been using the lessons learned from court battles over President Donald Trump’s various travel bans and immigration crackdowns to impose new travel restrictions aimed at containing the spread of coronavirus, according to an administration official.