In an unexpected setback to Representative Anthony D. Weiner 's mayoral campaign , three Democratic clubs in his southern Brooklyn district have decided to endorse two of his rivals , Gifford Miller and Fernando Ferrer .