SAN FRANCISCO — Apple Inc.’s seemingly never-ending quest for an injunction against Samsung Electronics Co.’s smartphone infringement has once again fallen short.

U.S. District Judge Lucy Koh ruled Wednesday that the narrow injunction Apple sought following its second smartphone brawl with Samsung came closer than previous attempts, but still did not meet U.S. Court of Appeals for the Federal Circuit standards.