New York City’s subway system and the James Beard Foundation say they’ve come up with a way to lure riders back onto trains and buses: a chance to win meals at neighborhood restaurants, tickets to a wine and food festival in Westchester and a stay at a posh hotel.