Maryland lawmakers will leave Annapolis Tuesday having resolved some of the costliest and most controversial issues of their four-year term — setting aside election-year politics to pass gun-control legislation, stave off the potential collapse of the state’s Obamacare market, deliver targeted tax relief and become the first state to regulate political ads on Facebook.