San Francisco voters passed two key measures aimed at tackling an affordable-housing shortage, including a $600 million bond package that is the largest ever approved in a city where rents are skyrocketing alongside the growth of the technology industry.