Barack Obama has told US intelligence staff they have his full support after he was accused of undermining the CIA.