Swiss Upper House rejects foreign fund ban on mosques