Brazil has reached a compensation settlement with BHP and others over a 2015 dam collapse which caused a giant mudslide killing 19 people.