No need to read any further, because this is a false premise. Trump was legally entitled to challenge the election results just like Gore in 2000 and Clinton in 2016. Like Gore and Clinton, he also was wrong - but being wrong not illegal either.
Maybe to a certain extent, but they have no power...