Massachusetts Gov. Deval Patrick’s sweeping proposal to legalize resort casinos now appears headed for defeat, with a powerful state lawmaker lining up against it. The bill’s impending demise comes after months of debate that had drawn the interest of some of the casino industry’s top players.