Spicer knocks Obama as he defends keeping White House visitor logs private