According to grammar, in the latter sentence, "it had sufficient cause to believe Mr Trump or his associates were involved with terrorists or foreign spies" is a complete sentence. Added with "to convince...Court", this sentence is more hard to understand. So, what is the "to convince...Court" function here?
Thank you!
If it were shown that his administration illegally snooped on Mr Trump, Mr Obama’s legacy would be disgraced. Alternatively, if it secured a warrant to bug Mr Trump’s phones, that would mean it had sufficient cause to believe Mr Trump or his associates were involved with terrorists or foreign spies to convince a judge on the Foreign Intelligence Surveillance Court.
source: Donald Trump’s habit of making accusations without evidence is corrosive