A seafront venue can stay open until 3.30am after agreeing conditions with police and councillors.