A new law would allow the government to close media and block websites on national security grounds without a court’s permission