in a split identical to a ruling last year on the flag-burning issue , the justices said the flag protection act of 1989 violates freedom of expression guaranteed by the first amendment to the constitution .