Customer information and travel history on registered Opal cards can be accessed by New South Wales police, the Transport for NSW has confirmed.