US president says there is little point in asking Beijing to stop spying as Washington conducts similar activities