The compromise state budget that emerged late Sunday left out a provision sought by Mayor Martin J. Walsh that would have permitted Boston-area bars and restaurants to stay open until 4 a.m.

Included in the Senate budget, the late-night license measure was highlighted by City Hall officials as a way of making Boston more attractive to foreign travelers accustomed to later closing hours.

But a group of city lawmakers actively opposed the later closing hours, saying they would diminish the quality of life in their neighborhoods, and lead to more drunk driving.