Bay Ridge G.O.P. lawmaker wins U.F.T. endorsement