It's the other way round: freedom is slavery. This was meant to say that a supposedly positive and worthwile feature as freedom would only be slavery in the end (for every "good" citizen), according to the totalitarian system of Oceania's society in "1984".
The other two philosophies are "war is piece" and "ignorance is strength", with same intentions.