It didn’t before. Any individual could appeal to European law via Judicial Review to overturn an act of parliament where it fell into the EU treaty ambit - particularly if they were European.
Now we’re out of the EU that option no longer exists and we can now pass legislation that cannot be stopped by the courts