Over the past year, the mayor-elect leaned on his Muslim identity to mobilize voters from across faith traditions.