The decision, which the White House intends to appeal, found that Trump did not have the authority without congressional approval to impose the fee, which the judge said functioned as a tax.