A developer has won a key local approval in Bayonne for a two-building, 162-unit apartment project near one of the city’s light rail stops.