As the Constitution is the "supreme law of the land", nothing "unconstitutional" can simultaneously be "legal."
You have it wrong. Congress passes law to say, intercept all phone calls and store them. Until a court strikes it down is assumed constitutional and legal. You challenge it and then it becomes illegal and unconstitutional. (The court also changes its mind from time to time so it's not an exact science.)
Wrongly assumed.