A major legislative battle over expanded gambling is shaping up in Massachusetts, with House Speaker Sal DiMasi signaling serious reservations with a proposal to legalize resort-style casinos. Nevertheless, the House speaker’s critique comes amid signs that support for expanded gambling in the state is growing, both among lawmakers and the general public.