A US marine has made history by becoming the first woman to complete the corps' gruelling 13-week infantry officer training.