The change comes after a ruling by a federal court judge that declared this part of the law unconstitutional