US invites Brazil president to visit after spying row