In a ruling on Monday, a federal judge said the fee was a tax that Trump didn't have authority to impose.