Question: are infinite combos legal mtg?
Answer: Both cards are perfectly fine to play, and some other combos, such as Lab Maniac, make use of it in legal ways. Taking it a step further, activating them to mill your deck, even if you know there's an Emrakul in it, is also fine. Problems arise when the deck demonstrates that it can end up where it started, not before.