Border wall funding deal reached by lawmakers