WHY would all parties agree to a negative opinion ?
It’s called collusive litigation and it happens a LOT.
In this case, however, because they are members of Congress, it is likely they asked only the court for leave to file the brief, not Hobby Lobby.