Trump backs longshoremen in standoff with port managers, paving way for January strike