Sydney's lockout laws will be relaxed slightly under certain conditions to allow people into bars until 2AM from 2017.