Switzerland’s top technical university justified the move as complying with laws to counter international espionage.