Obama endorses de Blasio for mayor