French court scraps large parts of hardline immigration law as unconstitutional