No, the photographer lost. It's another example of someone being sued because they refused to do what the customer asked for, but the result was different to the cake case.
That's because they didn't refuse to serve the gay customers, they just refused the message, which they're allowed to do. Another example is where a photographer didn't want to cover a gay wedding. They were sued and lost.