A federal judge has ruled that the MTA’s new policy of refusing all political and religious ads in the transit system means the agency can legally reject controversial posters by pro-Israel activist Pamela Geller.

“No law requires public transit agencies to accept political advertisements as a matter of course,” judge John Koeltl wrote in his Manhattan federal court decision.

The case began last year when Geller’s American Freedom Defense Initiative sued the MTA for blocking them from buying anti-Muslim bus ads.