Independent media outlets and rights groups in Hungary have condemned legislation passed by the country’s right-wing populist government that would allow authorities to investigate and prosecute people accused of undermining the country's sovereignty