City council passes ordinance to help city's affordable housing shortage