The New York mayor said this year's Deepavali also served as a reminder of the work still needed to build a politics rooted in tolerance and compassion