Preventative detention laws have been passed by the parliament as the government continues to deal with the fallout after the High Court ruled indefinite immigration detention illegal.