Mayor Muriel E. Bowser signed the emergency legislation into law while also issuing a rare veto on a companion bill.