The president joked to the men’s team that he would be ‘impeached’ if he didn’t also invite the gold-winning women’s team as well, a remark that prompted laughter