Maryland lawmakers agreed Thursday on a new budget aimed at addressing the state’s significant budget shortfall.