But judges also rule that US president doesn't have absolute immunity from investigation, order him to hand over some documents; cases returned to lower court