German legislators have given the green light to an overhaul of coronavirus restrictions as police clashed with demonstrators near the Reichstag.