A Manhattan federal judge has ruled that banks were not required to pay agent fees to accountants who helped borrowers apply for loans under the federal Paycheck Protection Program.