Given this is season 7 and everything we about the Riker character and his relationship with Picard, the writing was senseless. For the purpose of storyline, Riker is transformed out of character into a naive & disloyal fool who turns on Picard to back the Admiral who Riker knows is pursuing an illegal action. A Riker in character would have called a meeting with the Admiral and Picard to lay it all out and recommended that PIcard put the Admiral in the brig for attempting to once again violate the treaty of Algernon. The story could have continued to have PIcard retrieve the cloaking device in order to acquire evidence to court-martial the Admiral.