That may have been to some extent true when he wrote the Book of Lost Tales, but the Silmarillion and LotR are quite divorced from that and it has never been intended to glorify paganism.
That isn't a reason for Eru to allow the gate to form, it's a reason for him to keep their discordant...