The European Court of Human Rights ruled Thursday that Russia failed to do enough to prevent a 2004 terrorist attack on a school in Beslan, North Ossetia, where more than 330 people were killed,