Singapore has passed a controversial law aimed at countering foreign interference in domestic affairs, in a move that critics say could be used to…