Obama rejects Keystone pipeline, but leaves door open for tar sands