Top FBI officials had tried to "think outside the box" to find a way to pay employees, Director Wray said, but the effort fell short.