"For two days" is a adverbial phrase. It is how "we allowed". You could equally well say "We allowed two days." If you did it that way, "two days" would have been a direct object, a noun, and the thing that "we allowed".
So what's the difference in meaning between the two choices? "Two days" is more specific than "for two days". "For two days", being less precise, can be interpreted in more ways. For example, it could mean that you created more free time, or saved more money, or arranged your schedule. "Two days", on the other hand, merely specifies the number 2.