The Malaysian government signed an agreement on Thursday to take over 1MDB's remaining stake in a multi-billion dollar development project.