Namibia has cleared the way for a controversial offshore phosphate mining project, despite warnings from environmentalists and fishing groups over potential risks to marine ecosystems.