The Port Authority Police Department has agreed to end undercover stings by plainclothes officers that critics claimed targeted and entrapped restroom users — primarily gay and bisexual men — resulting in them being prosecuted on trumped-up charges of “public lewdness.”…