The Constitution only explicitly prohibits appropriations to the Army and Navy than are of a longer term than two years. (Article I, Section 8).
As I recall there are court cases that limit the ability of one congress to tie the hands of later congresses, but I don't know the details of this.
That sets an upper bounds on any appropriation.