A hiker suffered "significant injuries" after encountering two grizzly bears at Yellowstone National Park.