Controversial IR legislation passes parliament. What you need to know