You are free to use the included content in Logic Pro in your own commercial projects. Apple has the same royalty free EULA as everybody else in the business: you are free to use it in musical projects. The only restriction is: don’t repackage the samples and sell them as your own sample library.
The Apple Software may contain sample content including but not limited to artwork, audio files, audio loops, built-in sound files, graphics, images, impulse responses, photographs, samples, sound sets, sound settings, video files, or similar assets (“Sample Content”). This Sample Content is proprietary to Apple and/or its licensors, and is protected by applicable intellectual property and other laws, including but not limited to copyright. Except as otherwise provided, > all Sample Content included in the Apple Software may be used on a royalty-free basis to create your own original soundtracks for your film, video, and audio projects. > You may broadcast and/or distribute your own soundtracks that were created using the Sample Content; however, individual Sample Content assets may not be commercially or otherwise distributed on a standalone basis, nor may they be repackaged in whole or in part as audio samples, clipart, music beds, sound effects, sound files, sound libraries, stock animation, or similar assets.