New Hampshire has enacted legislation allowing the state to invest up to 5% of its public funds in Bitcoin and precious metals, marking the first such move by a U.S. state.