Maryland joins a small but growing list of states, including Illinois and Tennessee, that have passed similar legislation.