Gregory IX, Pope