The city’s ordinance sought to force her to photograph same-sex weddings and restrict the opinions she could publish on her website.