Four MPs who were suspended from the Labour Party after rebelling against welfare reforms have had their whips restored.