If they keep writing laws that are unconstitutional, it'll be wash, rinse, repeat. It takes a lot of energy, willpower, money and time to challenge and defend bad laws. So, no, lawmakers really can't just write a new law if a previous one was struck down.