The Massachusetts legislature has approved a measure that would provide $5-million in purse supplements at the state's two horse tracks and two Greyhound tracks.