A court says undercover informants don’t have to warn young people not to get involved in terror plots