What three departments, and two offices were set up by Congress?