Senators are considering how to write a law that could bar federal officers from hiding their identities in Vermont. But they’ll need to make it bulletproof against legal challenges.