If you want to join the military it will have an effect.
If you want federal employment, especially with a security clearance there will be a possible effect.
Same for state jobs and some states as well as police, fire, and other professions where you need a licence.
However, other factors may count such as the type of offense, how long ago it happened, your overall background.
Because he is keeping order in the court and following established court rules.
In my experience judges warn first and generally don't find contempt unless there is more than one instance.
As a lawyer it's been my experience that politeness and civility and following the rules is a useful approach.
Under the Adjudicative Guidelines there are a number of issues involved with being associated with, not just married to a foreign national. Being an illegal/undocumented alien is just one of them.
There are two basic "Concerns" -- "Foreign Influence," and "Foreign Preference."
There are certain countries where it is almost impossible to get a clearance, others he may be OK.
Also, it sounds like he will need a TS clearance and SCI access. Those are, except for Yankee White clearances the...
I have been in this situation. Typically the first or earlier attorney will tell me that he/she has to get permission from the client; and usually that's not a problem.
In the appellate cases I do it's sometimes necessary to get a court order, but that's criminal cases.
A first question is why, why won't he allow you as a successor attorney to talk to the prior attorney(ies).
Depending on the answer or non-answer I think you have to consider whether it is wise to continue the representation....