Multiple superconducting phases in a nearly ferromagnetic system