The bylaw was introduced in response to protests outside city pools and libraries, many of which were aimed at the LGBTQ+ community