Supreme Court agrees to try Musharraf