The monarch’s remarks offered a rare glimpse into her opinion on the climate crisis.