The legal term I had been trying to remember is the De Facto Officer Doctrine which says that acts performed by a person acting under the color of official title are valid, even though it is later discovered that the that person’s appointment or election to office was illegal. So anything Obama did in office stands.
No. That doctrine is not applicable where the deficiency is attributed to ineligibility to hold the position.