NBC: Judge denies states' bid to curtail DOGE's powers