Irish officials have hailed the legislation as a landmark step towards making amends for a long, dark chapter in the country's history.