Actually, they can. Laws have been used to overrule court decisions many times. Laws can't be used to change the Constitution - that requires a constitutional amendment.
I am OK with people attacking Trump on eminent domain. But it seems those doing the attacking are hypocrites.