Former home secretary has argued that equality legislation encourages institutions to treat minority criminals more leniently