US lawmakers agree on budget deal 'in principle'