The ruling concluded the fee was a tax, not a penalty, which Donald Trump lacked any authorisation from Congress to impose.