Stormont’s justice department “cannot continue to absorb” Legacy costs, Minister Naomi Long has said.