Obama did exactly what he wanted last night