http://time.com/23805/pope-francis-john-boehner-nancy-pelosi-congress/
Looks like it's okay to invite Heads of state. And the Pope is indeed a Head of State.