The European Parliament approved with an overwhelming majority a law protecting journalists and human rights advocates from abusive legal proceedings designed to stifle freedom of speech, marking the end of a six-year push to get the law across the line.