The iPhone maker has laid off some 600 employees in California working on expensive R&D projects at a time when its core products face fresh pressure.