Interesting discussion to be had here. De jure is not synonymous with "as a matter of law" or "a question of law," at least not in US usage:
"the term matter of law is used to define a particular area that is the responsibility of the court [to decide]. Matter of law is distinguished from matter of fact. All questions concerning the determination of fact are for the jury" to decide.
https://legal-dictionary.thefreedictionary.com/Matter of Law (question of law/fact is synonymous).
In contrast, de facto/de jure distinguishes things which are true but not recognized as such in the law (e.g. a stay-at-home dad not married to the mom nor on the birth certificate may be a "de facto father"), vs. things which are recognized as true in the law (e.g., a man who's never met the kid and isn't even the DNA father may be the father "de jure" because he was married to the mom when it was born).
De jure/de facto: How is it true (in practice/from facts, vs. in the eyes of law)?
Matter of law/of fact: Who decides if it is true (the judge vs. the jury)?
But none of this relates to the OP's phrase, which just means in the law/legally, the person who does X must demonstrate a legitimate motive.