Beyond campaigning lies the difficult and often dirty business of governing, which may test some believers’ faith in New York’s first Muslim mayor.