Both are good, but I am personally more comfortable with the first one. 좋은 주말 sounds slightly more formal to me.
In both, 주말에 is almost ungrammatical, because 보내다 (pass the time = to live / get by) is a transitive verb working on the object 주말. 주말을 is grammatically okay, but adding 을 makes them sound worse.