Senate and House ratify public worker contracts