Philippines signs historic deal with Muslims