A federal judge in Newark has ordered a commercial tenant to pay nearly $300,000 in legal fees to its former landlord in connection with environmental contamination of its property.