Approval from Germany's 16 federal states was the final hurdle in passing a historic change to the country's debt borrowing rules into law.