Judge puts brakes on new law banning foreign government spending on referendums