President Barack Obama made a surprise interruption in the White House briefing room to honour press secretary Josh Earnest during his final briefing.