Restore Photos library from Time Machine
Are you trying to open the photo library directly from the Time Machine volume?  You won't have edit access to anything on that volume.  You should copy the entire library file over to ~/Pictures, hold down Option when launching Photos.app and select the library file in ~/Pictures.