New law could undermine confidence in official statistics