Supreme court issues first amendment ruling