Governor Larry Hogan still must sign the legislation.
The bill passed by lawmakers does not determine which groups would qualify for licenses.
Local politicians argued that the original bill sought to award licenses to wealthy individuals or groups who lobbied for the passage of sports betting legislation.
Lawmakers would delegate licenses following voter passage of sports betting.
A House Bill proposed in January included 16 online sports betting licenses given to the state’s six casinos and two horse tracks.
The state would tax sports betting at 20%.
The Cordish Companies and MGM Resorts are among the groups who could most stand to profit from a sports betting license.
Maryland is also in competition to host a new Washington Redskins stadium.
Redskins owner Dan Snyder previously lobbied for a sports betting bill in Virginia, which passed earlier this month.
The Baltimore Ravens are reportedly interested in a license for their stadium as well.