Maryland lawmakers reach budget deal after debate influenced by fiscal uncertainty, US Senate race