The president’s presence at the ceremony cemented the new secretary of state’s position as the voice of foreign policy in the administration.