the trigger of each emrakul goes on the stack at the same time when your opponent's library is entirely put into his graveyard, thus you can remove his graveyard with relic or tormod in response.