Indonesia and Australia have restored full military relations, weeks after Jakarta suspended cooperation because of "insulting" teaching material found at an Australian army centre.