Former President Donald Trump is taking his fight to remain on the primary ballot in Maine to court, insisting the secretary of state had “no legal authority” to bar him from running.